Skip to content

feat: add templates edit command#5

Merged
gricha merged 1 commit intomainfrom
feat/template-edit
Feb 2, 2026
Merged

feat: add templates edit command#5
gricha merged 1 commit intomainfrom
feat/template-edit

Conversation

@gricha
Copy link
Owner

@gricha gricha commented Feb 2, 2026

Summary

  • Adds templates edit <id> command to modify existing templates in-place
  • Supports updating name (--name), description (-d), and exercises (-e) independently
  • Adds updateTemplate() method to storage layer, following the existing updateExercise() pattern

Test plan

  • Updates template name and description while preserving exercises
  • Replaces template exercises while preserving other fields
  • Throws error when editing non-existent template
  • All 120 tests pass, validation clean

🤖 Generated with Claude Code

@gricha gricha merged commit 889bade into main Feb 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant